<template>
  <div id="app">
    <el-container class="box-container">
      <el-aside class="nav-aside">
        <Nav></Nav>
      </el-aside>
      <el-container>
        <el-header class="common-header"></el-header>
        <el-main class="main-container">
          <div class="inner-page">
            <router-view></router-view>
          </div>
        </el-main>
        <el-footer class="common-footer"></el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
// 这个地方必须要写全部路径，包括文件类型
import Nav from "@/layout/Navigation.vue";
/* 不将axios挂在在vue原型上面，哪个地方用，哪个地方引入 */
// import https from "@/api/http"

@Component({
  components: { Nav }
})
export default class App extends Vue {
  mounted() {}
}
</script>

<style lang="scss">
#app {
  height: inherit;

  .box-container {
    height: 100%;

    .nav-aside {
    }

    .common-header {
      border-bottom: 2px solid #265514;
    }

    .main-container {
      background-color: rgba(85, 85, 85, 0.1);
      padding: 15px;

      .inner-page {
        background-color: white;
        height: 100%;
        width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
      }
    }

    .common-footer {
      border-top: 2px solid #265514;
    }
  }
}
</style>
